import { mongoDB } from '../../../../../../../../../../conect_mongoDB_class_laugh_node';
import { log_db_prefix } from '../../../../../../../DataDefine/mdb_info';
import { spacename_user } from '../../../../../../user/DataDefine/sourceData';
import { spacename_functions } from '../../../DataDefine/sourceData';

/**
 * 链接 当前用户 的 log -- functions 表
 * @param identity
 * @returns
 */
export function get_mdb_log_describe_cur_user_function(identity: string) {
  let mdb_name_log_describe_cur_user_function = `${log_db_prefix}_${spacename_user}_${identity}_${spacename_functions}`;

  return mongoDB.collection(mdb_name_log_describe_cur_user_function);
}
